From ebcef256abc88209479932ba3f7deea209bcaab3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 30 Jul 2020 04:46:09 +0200 Subject: [PATCH] gdk: Remove unused flags --- gdk/gdkinternals.h | 2 -- gdk/macos/gdkmacossurface.c | 2 -- gdk/x11/gdksurface-x11.c | 10 ---------- 3 files changed, 14 deletions(-) diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index a208e9c568..e241403e5d 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -301,8 +301,6 @@ typedef enum GDK_HINT_MAX_SIZE = 1 << 2, GDK_HINT_ASPECT = 1 << 4, GDK_HINT_WIN_GRAVITY = 1 << 6, - GDK_HINT_USER_POS = 1 << 7, - GDK_HINT_USER_SIZE = 1 << 8 } GdkSurfaceHints; typedef enum diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c index 4e8dad5473..968153a703 100644 --- a/gdk/macos/gdkmacossurface.c +++ b/gdk/macos/gdkmacossurface.c @@ -624,8 +624,6 @@ _gdk_macos_surface_set_geometry_hints (GdkMacosSurface *self, g_return_if_fail (self->window != NULL); if (geom_mask & GDK_HINT_POS) { /* TODO */ } - if (geom_mask & GDK_HINT_USER_POS) { /* TODO */ } - if (geom_mask & GDK_HINT_USER_SIZE) { /* TODO */ } if (geom_mask & GDK_HINT_MAX_SIZE) max_size = NSMakeSize (geometry->max_width, geometry->max_height); diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c index bccdbc3df7..f316872d57 100644 --- a/gdk/x11/gdksurface-x11.c +++ b/gdk/x11/gdksurface-x11.c @@ -2161,16 +2161,6 @@ gdk_x11_surface_set_geometry_hints (GdkSurface *surface, size_hints.y = 0; } - if (geom_mask & GDK_HINT_USER_POS) - { - size_hints.flags |= USPosition; - } - - if (geom_mask & GDK_HINT_USER_SIZE) - { - size_hints.flags |= USSize; - } - if (geom_mask & GDK_HINT_MIN_SIZE) { size_hints.flags |= PMinSize; -- 2.30.2